home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- if %1X==X goto Usage
- if %1X==? goto Usage
- if exist %1 goto F1
- :Usage
- echo
- echo When running HPFIX, use the following format:
- echo
- echo HPFIX deffilename [newdeffilename]
- echo
- echo where DEFFILENAME is the name of your CURRENT print control file and
- echo NEWDEFFILENAME is the (optional) NEW name for your print control file.
- echo
- echo
- goto ex
- :F1
- if not %2X==X goto f2
- echo Creating HPNEW.DEF...
- rem copy %1+HPFIX.DEF HPNEW.DEF>nul
- copy %1 HPNEW.DEF>nul
- echo $OS=0.25i >> HPNEW.DEF
- echo $OU=0.25i >> HPNEW.DEF
- echo $OB=0.25i >> HPNEW.DEF
- echo $OL=0.25i >> HPNEW.DEF
- echo $OR=0.25i >> HPNEW.DEF
- echo $P=27,69,27,38,108,52,68,27,38,108,49,69,27,38,108,48,76,27,38,108,54,68 >> HPNEW.DEF
- echo .L:11i >> HPNEW.DEF
- echo .W:8.5i >> HPNEW.DEF
- echo .XT:0.25i >> HPNEW.DEF
- echo .XB:0.25i >> HPNEW.DEF
- echo .XI:0.25i >> HPNEW.DEF
- echo .XJ:0.25i >> HPNEW.DEF
- echo Your new print control file is called HPNEW.DEF
- goto ex
- :F2
- echo Creating %2...
- rem copy %1+HPFIX.DEF %2>nul
- copy %1 %2>nul
- echo $OS=0.25i >> %2
- echo $OU=0.25i >> %2
- echo $OB=0.25i >> %2
- echo $OL=0.25i >> %2
- echo $OR=0.25i >> %2
- echo $P=27,69,27,38,108,52,68,27,38,108,49,69,27,38,108,48,76,27,38,108,54,68 >> %2
- echo .L:11i >> %2
- echo .W:8.5i >> %2
- echo .XT:0.25i >> %2
- echo .XB:0.25i >> %2
- echo .XI:0.25i >> %2
- echo .XJ:0.25i >> %2
- echo Your new print control file is called %2
- :ex
-
-